package cn.easy.mortgage.domain;

import cn.easy.base.domain.core.AtEntity;
import cn.easy.base.domain.core.INoEntity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "mtg_channel")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler", "fieldHandler" })
public class Channel extends AtEntity implements INoEntity {
	/**代码*/
	private String code;
	/**名称 */
	private String name;
	/**联系方式*/
	private String mobile;
	/**类型*/
	private Integer type;
	/**用户表关联*/
	private String userId;

	private String no;

	private String pid = "0";

	public String getCode() { return code; }
	public void setCode(String code) { this.code = code; }
	public String getName() { return name; }
	public void setName(String name) { this.name = name; }
	public String getMobile() { return mobile; }
	public void setMobile(String mobile) { this.mobile = mobile; }

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}
}
